<template>
    <div>
        <van-search v-model="value" placeholder="请输入搜索关键词" @click="sarch" />

    </div>
</template>

<script setup>
import { ref } from 'vue';
 const value = ref('');
 import { useRouter } from 'vue-router';
 const router = useRouter();

const sarch = () => {
    router.push('/search')
};
</script>

<style lang="scss" scoped>

</style>